﻿@model DomenModel.ItemDimension

@{
    ViewBag.Title = "CreateItemDimension";
}



@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <div class="panel-text">
        <h2>CreateItemDimension</h2>
     <table class="create-user-table">
        
            <tr>
                <td>@Html.LabelFor(model => model.Item.Name)</td>  
                <td>@Html.TextBoxFor(model => model.Item.Name, new { @class = "border", @Value = ViewBag.Name, @disabled = "disabled" })</td>                
                <td></td>
                <td></td>
            </tr>
         @Html.TextBoxFor(m => m.ItemId, new { @Value = @ViewBag.Id,@type="hidden" }) 
        
            <tr>
                <td>@Html.LabelFor(model => model.Price)</td>                
                <td>@Html.TextBoxFor(model => model.Price, new { @class = "border" })</td>
                <td>@Html.ValidationMessageFor(model => model.Price)</td>
            </tr>

            <tr>
                <td>@Html.LabelFor(model => model.Quantity)</td>
                <td>@Html.TextBoxFor(model => model.Quantity, new { @class = "border" })</td>
                <td>@Html.ValidationMessageFor(model => model.Quantity)</td>
            </tr>

            <tr>
                <td>@Html.LabelFor(model => model.Dimension)</td>
                <td>@Html.TextBoxFor(model => model.Dimension, new { @class = "border" })</td>
                <td>@Html.ValidationMessageFor(model => model.Dimension)</td>
            </tr>

         
        </table>
        <div style="margin-left: 80px;">
            <button type="submit" name="action" value="Create" class="buttons-blue">Create</button>
            <button type="reset" name="action" value="Refresh" class="buttons-yellow">Edit</button>
            @Html.ActionLink("Cancel", "Index", null, new { @class = "buttons-red" })
        </div>

    </div>
    
    

       
    
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

